package com.example.secondhandsysapi.Controller;


import com.example.secondhandsysapi.Service.ActiveUserInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.sql.Date;
import java.util.Map;

@RestController
@RequestMapping("activeUser")
public class ActiveUserInfoController {

    @Autowired
    private ActiveUserInfoService activeUserInfoService;

    @GetMapping("gender")
    public Map<Integer, Integer> getGender(@PathVariable Date log_time) {
        return activeUserInfoService.getActiveUserInfo(log_time);
    }

}
